<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.5.4/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
<img class="layui-upload-img" id="demo1" height="200px" width="200px" style="float: right">

<form class="layui-form-item" action="" style="float: left">
    <div class="layui-form">
        <label class="layui-form-label">真实姓名：</label>
        <div class="layui-input-inline">
            <input type="text" id="name" name="name" required lay-verify="required" placeholder="请输入标题"
                   autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">登录名称：</label>
        <div class="layui-input-inline">
            <input type="text" id="logname" name="logname" required lay-verify="required" placeholder="请输入标题"
                   autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">登录密码：</label>
        <div class="layui-input-inline">
            <input type="password" id="password" name="password" required lay-verify="required" placeholder="请输入密码"
                   autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所在部门：</label>
        <div class="layui-input-inline b">
            <select id="part">
                <option value="">--请选择--</option>
            </select>
        </div>
    </div>




    <div class="layui-upload">
        <label class="layui-form-label">员工头像：</label>
        <button type="button" class="layui-btn" id="test1">上传图片</button>
        <div class="layui-upload-list">
            <p id="demoText"></p>
        </div>
    </div>



    <div class="layui-form">
        <label class="layui-form-label">员工性别：</label>
        <div class="layui-input-block">
            <input type="radio" name="sex" value="男" title="男">
            <input type="radio" name="sex" value="女" title="女" checked>
        </div>
    </div>



    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">员工备注：</label>
        <div class="layui-input-block">
            <textarea id="desc" name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">员工类别：</label>
        <div class="layui-input-inline b">
            <select id="partpg2">
                <option value="">--请选择--</option>
                <option value="">普工</option>
                <option value="">部门主管</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">权限级别：</label>
        <div class="layui-input-inline b">
            <select id="partzg3">
                <option value="">--请选择--</option>
                <option value="">普通操作者</option>
                <option value="">部门主管</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
        </div>
    </div>
</form>
<script src="../lib/layui-v2.5.4/layui.js" charset="utf-8">
</script>
<script src="../js/addEmp.js">
</script>

<script src="../lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
<script>
    function getValue() {
        let name = $('#name').val();
        let logname = $('#logname').val();
        let password = $('#password').val();
        let parttype = $('#part option:selected').val();
        let demo1 = $('#demo1').val();
        let sex = $('#sex input:checked').val();
        let partpg2 = $('#partpg2 option:selected').val();
        let partzg3 = $('#partzg3 option:selected').val();
        let data = {
            "eTruename":name,
            "eLoginname":logname,
            "ePsw":password,
            "eImg":demo1,
            "eSex":sex,
            "eAdmin":partpg2,
            "eFlag":partzg3,
            "pName":parttype
 };
        return data;
    }
</script>
</body>

</html>
